package cn.livingCloud.dto;

import cn.livingCloud.context.Config;
import cn.livingCloud.entity.content.Article;

/**
 * Created by 唐旭 on 2016/6/11.
 */
public class ArticleJsonDto {
    private String title;
    private String url;

    public ArticleJsonDto() {
    }

    public ArticleJsonDto(Article article) {
        this.title = article.getTitle();
        this.url = Config.getDomainUrl() + "article/display.htm?uuid=" + article.getUuid();
    }

    public String getTitle() {
        return title;
    }

    public ArticleJsonDto setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public ArticleJsonDto setUrl(String url) {
        this.url = url;
        return this;
    }
}
